import Vue from 'vue';
import vm from './app.vue';
import router from './router';
import MintUI from 'mint-ui';
import 'mint-ui/lib/style.css';
import './lib/mui/css/mui.min.css';
import './lib/css/icons-extra.css';
import VUeResource from "vue-resource";
import moment from "moment";
import mui from './lib/mui/js/mui.min.js';
import store from './store';
window.mui = mui;


Vue.filter("dateFormat", function(dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
    return moment(dataStr).format(pattern);
})


Vue.use(VUeResource);
Vue.http.options.root = "http://www.liulongbin.top:3005/";
Vue.http.options.emulateJSON = true;

import VuePreview from 'vue-preview';
Vue.use(VuePreview);

Vue.use(MintUI);

new Vue({
    el: '#app',
    render: h => h(vm),
    router,
    store
})